#!/usr/bin/env python

"""
tf_test_002_InteractiveSession.py
Interactive session with matrices subtraction test example.
"""

__version__     = "1.0.0"
__author__      = "David Qiu"
__email__       = "david@davidqiu.com"
__website__     = "www.davidqiu.com"
__copyright__   = "Copyright (C) 2017, David Qiu. All rights reserved."


import tensorflow as tf
import numpy as np


if __name__ == '__main__':
  sess = tf.InteractiveSession()

  x = tf.Variable([1.0, 2.0])
  a = tf.constant([3.0, 3.0])

  x.initializer.run()

  subtraction = tf.subtract(x, a)
  print(subtraction.eval())


